<?php
class model_register extends CI_Model {

	public function __construct()
	{
		$this->load->database();
		//$this->load->library('FClass');
	}
	
	public function selectExists($data)
	{
		$query = $this->db->get_where('cc_member', array($data['col'] =>  $data["val"]));
		return $query->row_array();
	}
	
	public function insert($data)
	{
		$data = array(
               'mb_email' 	=> $data['mb_email'],
               'mb_fullname'=> $data['mb_username'],
               'mb_username'=> $data['mb_username'],
               'mb_password'=> $data['mb_password'],
               'mb_status' 	=> $data['mb_status'],
               'mb_create_time' =>time()
            );

		$this->db->insert('cc_member', $data); 
	}

}